package net.media.datafw;

@SuppressWarnings("serial")
public class DataException extends Exception {
	public static final int ERR_NONE = 0;
	public static final int ERR_UNKNOWN = 1;
	public static final int ERR_ILLEGAL_DATA = 2;

	private int errorCode;

	public DataException() {
		super();
	}

	public DataException(int errorCode) {
		super();
		this.errorCode = errorCode;
	}

	public DataException(String message) {
		super(message);
	}

	public DataException(int errorCode, String message) {
		super(message);
		this.errorCode = errorCode;
	}

	public DataException(Throwable throwable) {
		super(throwable);
	}

	public DataException(int errorCode, Throwable throwable) {
		super(throwable);
		this.errorCode = errorCode;
	}

	public DataException(String message, Throwable throwable) {
		super(message, throwable);
	}

	public DataException(int errorCode, String message, Throwable throwable) {
		super(message, throwable);
		this.errorCode = errorCode;
	}

	public int getErrorCode() {
		return errorCode;
	}
}
